package com.glorystone.ins.dao;

import com.glorystone.ins.common.common.PageVo;
import com.glorystone.ins.common.common.Pageable;
import com.glorystone.ins.domain.Insurer;
import com.glorystone.ins.domain.InsurerUser;
import com.glorystone.ins.interceptor.PageList;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author:LiuSC
 * @Date:Created in 2018-03-13 13:53
 * @since: JDK 1.7
 * @Description:
 */
public interface InsurerMapper {

    int insert(Insurer insurer);

    int update(Insurer insurer);

    Insurer selectByPrimaryKey(Long tid);

    PageList<Insurer> queryAllInsurerList(@Param("vo") PageVo vo, Pageable pageable);

    List<Insurer> selectAllInsurer();

    int insertInsurerUser(InsurerUser iUser);

    int updateInsurerUser(InsurerUser iUser);

    int getInsurerUserCount(Long insurerId);

    List<InsurerUser> getSlaesmenByCompanyId(@Param("tid") Long tid);

    List<InsurerUser> getSlaesmenByUserId(@Param("userId") Long userId);
}
